<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.yfg.wap.flight.entity.PayRequest"%>
<%@page import="com.yfg.wap.flight.common.Tools"%>
<%@page import="java.util.Map"%>
<%
Map map = request.getParameterMap();
Map newMap=null;
if(Tools.isNotNullOrEmpty(map) && map.size()>0){
	Map paramsMap = Tools.returnNewMap(map);
	PayRequest payrequest = new PayRequest();
	payrequest.setServiceId(paramsMap.get("sevice_id").toString());
	payrequest.setReqTransSeq(paramsMap.get("ori_req_trans_seq").toString());
	//PayRequestResonseService.insertSendRespnse(paramsMap);
	/*if(paramsMap.get("seller_id").equals("jinri")){
		if(paramsMap.get("sevice_id").equals("110001")){
			if(paramsMap.get("rsp_cd").equals("0000")){
				PlaneParentOrder item = new PlaneParentOrder();
				item.setSystemSn(paramsMap.get("order_id").toString());
				OrderQueryService oqs = new OrderQueryService();
				item = oqs.getOrder(item.getSystemSn());
				if(Tools.isNotNullOrEmpty(item)&&item.getStatus()==0){
					item.setPayTime(new Date());
					item.setStatus(1);
					try {
						oqs.updatePlaneOrderPayInfo(item);
					
						IncomExpenDetails ied = new IncomExpenDetails();
						ied.setSeqnum(paramsMap.get("ori_req_trans_seq").toString());

						ied.setAmount(BigDecimal.valueOf(Double.valueOf(paramsMap.get("tot_trans_amt").toString())/100));
						
						ied.setIetype(0);
						
						ied.setOrderId(paramsMap.get("order_id").toString());
						
						ied.setSystemname("FLIGHT");
						
						ied.setSponsor("auto");
						
						ied.setCreateTime(new Date());
						
						ied.setStatus(true);
						
						IncomExpenService.addIncomExpen(ied);
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}
			}
		}*/
		paramsMap.clear();
	}
	
%>
<%@ include file="head.jsp" %>
<title>支付-系统提示</title>
</head>
<body>
<ul class="radius_border box_form" style="text-align: center;">
	<li>
		系统提示
	</li>
	<li>
		<%if(Tools.isNotNullOrEmpty(newMap) && newMap.get("rsp_cd").equals("0000")){ %>
		<h3>交易成功</h3>
		<%}else{ %>
		<h3>交易失败(<%=Tools.isNotNullOrEmpty(newMap)?newMap.get("rsp_cd"):"请求无效" %>)</h3><%}%>
	</li>
	<li>
		<a href="<%=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+"/"%>">返回机票预订</a>
	</li>
	
</ul>
</body>
</html>